From: Jasper St. Pierre Date: Thu, 28 Feb 2013 21:01:15 +0000 (-0500) Subject: workspace: Use the scaled width when calculating the total width X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4621 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=b24a10aa00723eec75034955628e772f1e413c77;p=gnome-shell.git workspace: Use the scaled width when calculating the total width This is a small inconsistency I found in the code after review. https://bugzilla.gnome.org/show_bug.cgi?id=694902 --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 06b9dbfd8..abc42202a 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -815,7 +815,9 @@ const UnalignedLayoutStrategy = new Lang.Class({ let rows = []; let totalWidth = 0; for (let i = 0; i < windows.length; i++) { - totalWidth += windows[i].actor.width; + let window = windows[i]; + let s = this._computeWindowScale(window); + totalWidth += window.actor.width * s; } let idealRowWidth = totalWidth / numRows;